package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="t_cms_channel")
public class TCmsChannel implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2971240577861363474L;
	
	private Long id;
	private String code;
	private String channelName;
	private Date createTime;
	private Date updateTime;
	private Date onlineTime;
	private Date offlineTime;
	private Integer status;
	private Integer sequence;
	private Integer type;
	private Long cpCode;
	private Long zoneId;
	private String zoneCode;
	
	@Column(name = "CP_CODE", length = 20, nullable = true)
	public Long getCpCode() {
		return cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="CHANNEL_NAME",length=64,nullable=true)
	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME",nullable=true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME",nullable=true)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ONLINE_TIME", nullable = true)
	public Date getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "OFFLINE_TIME", nullable = true)
	public Date getOfflineTime() {
		return offlineTime;
	}

	public void setOfflineTime(Date offlineTime) {
		this.offlineTime = offlineTime;
	}

	@Column(name = "STATUS", length = 2, nullable = true)
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "CODE", length = 64, nullable = true)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "SEQUENCE", length = 11, nullable = true)
	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	@Column(name = "TYPE", length = 11, nullable = true)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	@Column(name = "ZONE_ID", length = 20, nullable = true)
	public Long getZoneId() {
		return zoneId;
	}

	public void setZoneId(Long zoneId) {
		this.zoneId = zoneId;
	}
	@Column(name = "ZONE_CODE", length = 64, nullable = true)
	public String getZoneCode() {
		return zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}
	
}
